package com;

public class BlockTest {

}
class Person{
    //属性
    String name;
    int age;
    static String desc="我是一个人";
    public Person(){
    }
    public Person(String name,int age){
        this.name=name;
        this.age=age;
    }
    //代码块
    static{

    }
    public void eat(){
        System.out.println("吃饭");
    }
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
